package com.yanchi.controller;

import com.yanchi.feignclient.OrderClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mgm
 */
@RestController
public class UserController {

    @Autowired
    private OrderClient orderClient;


    @GetMapping("user")
    public String user(){
        String orderResult = orderClient.orderDemo();
        return "user --> " + orderResult;
    }



}
